package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;

public interface UserService {
    //分页查询

    PageInfo<User> findAll(int currentPage, int pageSize);


    //根据id查询

    User findById(int id);

    //添加
    int save(User user);

    //修改
    int update(User user);

    //删除
    int delete(int id);

    //用户登录
    User login(String username, String password);

}
